﻿Imports System
Imports System.Runtime.CompilerServices
Imports System.Runtime.InteropServices

Namespace Google.Desktop.Interop
    <ComImport, Guid("4E26495C-CA41-4085-96C4-8CA805AF297E"), TypeLibType(CShort(2)), ClassInterface(CShort(0))> _
    Public Class GoogleDesktopQueryAPIClass
        Implements IGoogleDesktopQueryAPI2, GoogleDesktopQueryAPI

        ' Methods
        <MethodImpl(MethodImplOptions.InternalCall, MethodCodeType:=MethodCodeType.Runtime)> _
        Public Sub New()

        End Sub

        <MethodImpl(MethodImplOptions.InternalCall, MethodCodeType:=MethodCodeType.Runtime), DispId(&H418)> _
        Public Overridable Function Query(<[In]()> ByVal cookie As Integer, <[In](), MarshalAs(UnmanagedType.BStr)> ByVal QueryStr As String, <[In](), MarshalAs(UnmanagedType.Struct)> Optional ByVal category As Object = Nothing, <[In](), MarshalAs(UnmanagedType.Struct)> Optional ByVal ranking As Object = Nothing) As <MarshalAs(UnmanagedType.Interface)> IGoogleDesktopQueryResultSet Implements IGoogleDesktopQueryAPI2.Query, IGoogleDesktopQueryAPI.Query

        End Function


        <MethodImpl(MethodImplOptions.InternalCall, MethodCodeType:=MethodCodeType.Runtime), DispId(&H419)> _
        Public Overridable Function QueryEx(<[In]()> ByVal cookie As Integer, <[In](), MarshalAs(UnmanagedType.BStr)> ByVal QueryStr As String, <[In](), MarshalAs(UnmanagedType.Struct)> Optional ByVal category As Object = Nothing, <[In](), MarshalAs(UnmanagedType.Struct)> Optional ByVal ranking As Object = Nothing) As <MarshalAs(UnmanagedType.Interface)> IGoogleDesktopQuery Implements IGoogleDesktopQueryAPI2.QueryEx, IGoogleDesktopQueryAPI.QueryEx

        End Function


        <MethodImpl(MethodImplOptions.InternalCall, MethodCodeType:=MethodCodeType.Runtime), DispId(&H423)> _
        Public Overridable Function QueryForEvent(<[In]()> ByVal cookie As Integer, <[In](), MarshalAs(UnmanagedType.Struct)> ByVal [event] As Object) As <MarshalAs(UnmanagedType.Interface)> IGoogleDesktopQueryResultItem Implements IGoogleDesktopQueryAPI2.QueryForEvent

        End Function

     
    End Class
End Namespace

